package com.zr.dao.order;

import com.zr.vo.order.OrderFee;
import java.util.List;

/**
 * 订单费用处理
 * @author huangguilong
 */
public interface OrderFeeDao {
    int deleteByPrimaryKey(Integer id);

    int insert(OrderFee record);

    int insertSelective(OrderFee record);

    OrderFee selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(OrderFee record);

    int updateByPrimaryKey(OrderFee record);

    /**
     * 根据订单号获取费用信息
     * @param feeOrderId
     * @return List<OrderFee>
     * @author huangguilong
     */
    List<OrderFee> selectFeeListByOrderId(String feeOrderId);

    /**
     * 删除所有未生成订单的费用
     * @return int
     * @author huangguilong
     */
    int deleteAllByOrderId(String feeOrderId);

    /**
     * 补充数据库中当前订单费用的订单编号
     * @return int
     * @author huangguilong
     */
    int updateOrderId(String feeOrderId);
}